/*
 * @Author: 叫我龟先生 yyxxkahhh@163.com
 * @Date: 2022-11-09 20:29:28
 * @LastEditors: 叫我龟先生 yyxxkahhh@163.com
 * @LastEditTime: 2022-11-12 18:52:06
 * @FilePath: \lanxiangdkk\src\api\base\permissions.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { createAPI } from '@/utils/request'
export const list1 = data => createAPI('/permissions', 'get', data)
export const simple = data => createAPI('/permissions/simple', 'get', data)
export const add = data => createAPI('/permissions', 'post', data)
export const update = data => createAPI(`/permissions/${data.id}`, 'put', data)
export const remove = data => createAPI(`/permissions/${data.id}`, 'delete', data)
export const detail = data => createAPI(`/permissions/${data.id}`, 'get', data)
